import 'package:get/get.dart';

abstract class BaseViewModel extends GetxController{

  int i = 0;


  addNum(){
    i = i+1;
    update();
  }
  @override
  void onInit() {
    print('onInit-->CommViewModel');
    super.onInit();
  }

  @override
  void onClose() {
    print('onClose-->CommViewModel');
    super.onClose();
  }
}